package cn.edu.seig.textbook.service;

import cn.edu.seig.textbook.domain.pojo.Requests;
import cn.edu.seig.textbook.enums.RequestEnum;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author day
 * @since 2024-11-07
 */
public interface IRequestsService extends IService<Requests> {
    List<Requests> getRequestsByStatus(@Param("requestStatus") RequestEnum requestStatus);
    List<Requests> getRequestsByTeacherName(@Param("teacherName") String teacherName);
    int addRequest(Requests request);
    int updateRequest(Requests request);
    int deleteRequest(@Param("requestId") int requestId);
    List<Requests> findAll();
}
